package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.dto.SetmealDishesDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 王同学
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Setmeal {
    private String id;
    private Integer type;
    private String categoryId;
    private String dishId;
    private String name;
    private BigDecimal price;
    private Integer status;
    private String code;
    private String description;
    private String image;
    @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
    LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
    LocalDateTime updateTime;
    String createUser;
    String updateUser;
    private List<SetmealDishesDto> setmealDishes;
}
